package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.SalePriceMaster;
import cn.com.nes.site.entity.vo.crm.SalePriceMasterVO;
import cn.com.nes.site.service.crm.order.dto.SalePriceMasterDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ShenWei
 * @Date: 2024/03/15/14:01
 */
public interface SalePriceMasterMapper extends BaseMapper<SalePriceMaster> {

    List<SalePriceMasterDTO> getPriceSheetList(Page<SalePriceMasterDTO> page, @Param("vo") SalePriceMasterVO vo);

    Integer getPriceSheetStatus(@Param("id") Long id);

    List<Long> getPriceSheetIdListByOrderId(@Param("orderId") Long orderId);

    List<String> getHistoryName(@Param("userId") String userId);

    List<SalePriceMaster> getSalePriceMasters(@Param("orderId") Long orderId);

    SalePriceMasterDTO getPriceSheetDetail(@Param("id") Long id);

    List<SalePriceMasterDTO> getPriceMasters(@Param("orderId")Long orderId);
}
